﻿#include <stdio.h>
#include <Windows.h>

//main02：汇编语言
int main02(void)
{
	int a;
	int b;
	int c;
	/*a = 10;
	b = 20;
	c = a + b;*/

	//2.汇编代码；
	__asm
	{
		mov a, 3
		mov b, 4
		mov eax, a
		add eax, b

		mov c, eax
	}
	printf("3.输出汇编代码a的值：%d\n", a);//3
	printf("4.输出汇编代码b的值：%d\n", b);//4
	printf("5.输出汇编代码c的值：%d\n", c);//7
	//printf("1.输出c的值：%d\n",c);

	//6.为了打断点调试；
	getchar();

	//WinExec
	return 0;
}